package com.habitreformer.core.task;

import java.util.ArrayList;
import java.util.List;

public class TaskFactory
{
	final static int DEFAULT_TASK_NUMBER = 21;
	private static TaskFactory instance;

	private TaskFactory()
	{

	}

	public static TaskFactory getInstance()
	{
		if (null == instance)
		{
			instance = new TaskFactory();
		}
		return instance;
	}

	public List<Task> getTaskList()
	{
		List<Task> list = new ArrayList<Task>();
		for (int i = 0; i < DEFAULT_TASK_NUMBER; i++)
		{
			Task task = new TaskImpl();
			list.add(task);
		}
		return list;
	}

}
